package com.ccloud.blog.modules.blog.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author chentailai
 * @since 2019-09-26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("echo_business_blog_tag_relation")
public class BlogTagRelation extends Model<BlogTagRelation> {

    private static final long serialVersionUID = 1L;

    /**
     * 关联id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * bokeid
     */
    private Integer blogId;
    /**
     * blogTag id
     */
    private Integer tagId;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 创建人
     */
    private Integer createby;
    /**
     * 更新时间
     */
    private Date updateTime;
    /**
     * 更新人
     */
    private Integer updateby;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "BlogTagRelation{" +
        ", id=" + id +
        ", blogId=" + blogId +
        ", tagId=" + tagId +
        ", createTime=" + createTime +
        ", createby=" + createby +
        ", updateTime=" + updateTime +
        ", updateby=" + updateby +
        "}";
    }
}
